package com.wpw.dream.hessian.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.wpw.dream.hessian.server.IServerService;

public class SpringClient {

	 public static void main(String[] args) {  
	        ApplicationContext contex = new ClassPathXmlApplicationContext("remote-client.xml");  
	        // 获得客户端的Hessian代理工厂bean  
	        IServerService i = (IServerService) contex.getBean("clientSpring");  
	        System.out.println(i.sayHello("chen"));  
	    }  
}
